/**
 * \file CBaseRequest.h
 * \author Corentin Le Bail
 * \date 2009-2013
 * \brief Fichier de déclaration de la classe CBaseRequest; fenêtre des bons de livraison.
 */
//------------------------------------------------------------------------------
#ifndef __CBASEREQUEST_H__
#define __CBASEREQUEST_H__
//------------------------------------------------------------------------------
class CBaseRequest : public QObject {
	Q_OBJECT
	Q_PROPERTY(QString token READ getToken)
	Q_PROPERTY(QDateTime requestDate READ getRequestDate);
	Q_PROPERTY(QString hashKey READ getHashKey);
	Q_PROPERTY(QObject* data READ getData);
	public:
		void setToken(QString token) { this->token=token; }
		QString getToken(void) { return token; }
		QDateTime getRequestDate(void) { return requestDate; }
		QString getHashKey(void) { return hashKey; }
		void setData(QObject* data) { this->data=data; }
		QObject* getData(void) { return data; }
	private:
		QString token;
		QDateTime requestDate;
		QString hashKey;
		QObject* data;
};
//------------------------------------------------------------------------------
#endif// __CBASEREQUEST_H__
//------------------------------------------------------------------------------